﻿//v html trqbva da se napi6e:
//<a href="https://twitter.com/share" class="twitter-share-button" data-text="zlati">Tweet</a>
!function (d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
    if (!d.getElementById(id)) {
        var msg = "I have a highscore in the best Tetris game ever!";

        var a = document.getElementsByClassName("twitter-share-button")[0];
        a.setAttribute("data-text", msg);

        js = d.createElement(s);
        js.id = id;
        js.src = p + '://platform.twitter.com/widgets.js';
        fjs.parentNode.insertBefore(js, fjs);
    }
}
    (document, 'script', 'twitter-wjs');